﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public class ConstString
    {
        #region Http类型
        public const string Get = "GET";
        public const string POST = "POST";
        public const string PUT = "PUT";
        public const string DELETE = "DELETE";

        public const string MediaType = "application/json";
        #endregion

        #region 海康RcsApi路由

        public const string HkRcsRoute = "/rcms/services/rest/hikRpcService/";
        //生成任务单
        public const string genAgvSchedulingTask = "genAgvSchedulingTask";
        public const string genAgvSchedulingTaskCode = "1";
        //继续执行任务
        public const string continueTask = "continueTask";
        public const string continueTaskCode = "2";
        //取消任务
        public const string cancelTask = "cancelTask";
        public const string cancelTaskCode = "3";
        //任务执行通知 上层服务
        public const string agvCallback = "agvCallback";
        public const string agvCallbackCode = "4";
        //查询任务状态 
        public const string queryTaskStatus = "queryTaskStatus";
        public const string queryTaskStatusCode = "5";
        //查询AGV状态 上层服务
        public const string queryAgvStatus = "queryAgvStatus";
        public const string queryAgvStatusCode = "6";
        //停止AGV 
        public const string stopRobot = "stopRobot";
        public const string stopRobotCode = "7";
        //恢复AGV
        public const string resumeRobot = "resumeRobot";
        public const string resumeRobotCode = "8";
        //料箱顺序出库
        public const string genCtuGroupTaskBatch = "genCtuGroupTaskBatch";
        public const string genCtuGroupTaskBatchCode = "9";
        //料箱取放回调
        public const string boxApplyPass = "boxApplyPass";
        public const string boxApplyPassCode = "10";
        //告警推送通知 上层服务
        public const string warnCallback = "warnCallback";
        public const string warnCallbackCode = "11";
        //校验料箱是否可入库 上层服务
        public const string applyReturnForValid = "applyReturnForValid";
        public const string applyReturnForValidCode = "12";
        //申请回库仓位 上层服务
        public const string applyReturnForBin = "applyReturnForBin";
        public const string applyReturnForBinCode = "13";
        //任务优先级设置
        public const string setTaskPriority = "setTaskPriority";
        public const string setTaskPriorityCode = "14";
        //货架与位置绑定、解绑 
        public const string bindPodAndBerth = "bindPodAndBerth";
        public const string bindPodAndBerthCode = "15";
        //货架与物料绑定、解绑
        public const string bindPodAndMat = "bindPodAndMat";
        public const string bindPodAndMatCode = "16";
        //位置禁用与启用 
        public const string lockPosition = "lockPosition";
        public const string lockPositionCode = "17";
        //地图位置信息同步 
        public const string syncMapDatas = "syncMapDatas";
        public const string syncMapDatasCode = "18";
        //查询货架储位与物料批次关系 
        public const string queryPodBerthAndMat = "queryPodBerthAndMat";
        public const string queryPodBerthAndMatCode = "19";
        //仓位禁用与启用
        public const string blockStgBin = "blockStgBin";
        public const string blockStgBinCode = "20";
        //容器与仓位绑定、解绑
        public const string bindCtnrAndBin = "bindCtnrAndBin";
        public const string bindCtnrAndBinCode = "21";
        //绑定解绑通知 
        public const string bindNotify = "bindNotify";
        public const string bindNotifyCode = "22";

        #endregion
        #region 路由分隔符
        public const string HttpComPara = "http://";
        public const string HttpsComPara = "https://";
        public const string Spacer = "/";
        public const string Colon = ":";
        #endregion

        #region Appsettings path
        public const string Settingpath = "appsettings.json";

        public const string OpticalServiceKey = "OpticalService";
        public const string ProtocalRcsKey = "ProtocalRcs";

        public const string RcsServiceKey = "RcsService";
        public const string SettSubKeyIp = "Ip";
        public const string SettSubKeyPort = "Port";

        public const string EquipmentNumberKey = "EquipmentNumber";
        public const string RollerControlKey = "RollerControl";
        #endregion

        public const string Termination = "/n";
        public const string HeartBeatMsg = "HeartBeatMsg";

        #region 海康Rcs报文常数字
        public const string ResultCode_success = "0";
        public const string ResultMsg_success = "成功";

        public const string ResultCode_fail = "1";
        public const string ResultMsg_fail = "失败";
        #endregion

        #region modbus
        public const string RollerCode = "99";

        public const string Writ_03 = "3";
        public const string Read_04 = "4";
        #endregion
    }
}
